package com.example.framework509.logCore.entity;

import com.alibaba.fastjson.JSONObject;

import java.util.Date;

public class LogManage {

    private Integer id;
    private String msg;
    private String optType;
    private String optPersonId;
    private String errorMsg;
    private String optIp;
    private Long excTime;
    private Date createDate;
    private String status;
    private Object requestParam;
    private Object responseData;
    private String requestUrl;
    private String requestType;
    private String requestMethodName;
    private String requestPlatform;
    private String requestBrowser;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getOptType() {
        return optType;
    }

    public void setOptType(String optType) {
        this.optType = optType;
    }

    public String getOptPersonId() {
        return optPersonId;
    }

    public void setOptPersonId(String optPersonId) {
        this.optPersonId = optPersonId;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getOptIp() {
        return optIp;
    }

    public void setOptIp(String optIp) {
        this.optIp = optIp;
    }

    public Long getExcTime() {
        return excTime;
    }

    public void setExcTime(Long excTime) {
        this.excTime = excTime;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getRequestParam() {
        return requestParam;
    }

    public void setRequestParam(Object requestParam) {
        this.requestParam = requestParam;
    }

    public Object getResponseData() {
        return responseData;
    }

    public void setResponseData(Object responseData) {
        this.responseData = responseData;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getRequestType() {
        return requestType;
    }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public String getRequestMethodName() {
        return requestMethodName;
    }

    public void setRequestMethodName(String requestMethodName) {
        this.requestMethodName = requestMethodName;
    }

    public String getRequestPlatform() {
        return requestPlatform;
    }

    public void setRequestPlatform(String requestPlatform) {
        this.requestPlatform = requestPlatform;
    }

    public String getRequestBrowser() {
        return requestBrowser;
    }

    public void setRequestBrowser(String requestBrowser) {
        this.requestBrowser = requestBrowser;
    }

    @Override
    public String toString() {
        JSONObject logManage = new JSONObject();
        logManage.put("msg", msg);
        logManage.put("optType", optType);
        logManage.put("optPersonId", optPersonId);
        logManage.put("errorMsg", errorMsg);
        logManage.put("optIp", optIp);
        logManage.put("excTime", excTime);
        logManage.put("createDate", createDate);
        logManage.put("status", status);
        logManage.put("requestParam", requestParam);
        logManage.put("responseData", responseData);
        logManage.put("requestUrl", requestUrl);
        logManage.put("requestType", requestType);
        logManage.put("requestMethodName", requestMethodName);
        logManage.put("requestPlatform", requestPlatform);
        logManage.put("requestBrowser", requestBrowser);
        return JSONObject.toJSONString(logManage);
    }
}
